const { merge } = require('webpack-merge')
const common = require('./webpack.common')
const path = require('path')

/**
 * @type {import('webpack').Configuration}
 */
module.exports = merge(common, {
    mode: 'development',
    devtool: 'cheap-module-source-map',
    devServer: {
        contentBase: path.join(__dirname, 'dist'),
        compress: true,
        port: 9000,
        hot: true,
        open: true
    }
})